﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WomanMotion.WebApi.Infrastructure.Common;
using WomanMotion.WebApi.Model.Dtos.Classify;
using WomanMotion.WebApi.Model.Dtos.Users;

namespace WomanMotion.WebApi.Model.Dtos.Match
{
    /// <summary>
    /// 返回前端的赛事信息
    /// </summary>
    public class LeadingMatchVM
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public long Createdby { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime Createdtime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public long Updatedby { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime Updatedtime { get; set; }

        /// <summary>
        /// 是否禁用;1代表启用，0代表禁用
        /// </summary>
        public int Ifdisable { get; set; }

        /// <summary>
        /// 一级比赛分类ID
        /// </summary>
        public long FirstLevelClassid { get; set; }

        /// <summary>
        /// 一级比赛分类名称
        /// </summary>
        public string? FirstLevelClassName { get; set; }

        /// <summary>
        /// 二级比赛分类ID
        /// </summary>
        public long TwoLevelClassid { get; set; }

        /// <summary>
        /// 二级比赛分类名称
        /// </summary>
        public string? TwoLevelClassName { get; set; }

        /// <summary>
        /// 开始日期
        /// </summary>
        public DateTime Starttime { get; set; }

        /// <summary>
        /// 比赛时间字符串格式
        /// </summary>
        public string? StarttimeStr
        {
            get { return Starttime.ToString("yyyy年MM月dd日"); }
            set
            {
            }
        }

        /// <summary>
        /// 比赛日期中文星期几
        /// </summary>
        public string? StarttimeWeek
        {
            get { return DateTimeTool.Week(Starttime); }
            set
            {
            }
        }

        /// <summary>
        /// 详细的比赛信息
        /// </summary>
        public List<MatchPageVM> children { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }
    }
}